They are both formed by erosion. They are both formed from cooled lava. Heat and pressure can turn them into lava. Heat and pressure can turn them into metamorphic rock.
I am hesitating between 4 options to answer the following question, which option should I choose?
Question: How are igneous and sedimentary rocks similar?
Possibilities:
- They are both formed by erosion.
- They are both formed from cooled lava.
- Heat and pressure can turn them into lava.
- Heat and pressure can turn them into metamorphic rock.

Heat and pressure can turn them into metamorphic rock.