You need to read the IB guide, the EE Student Handbook and any subject-specific guidance that is relevant to you.
Here you can find an outline of what the EE actually is.
Here you can find an overview of the steps to writing the extended essay
Here you will find support material for both students and supervisors