Simply chose 'Performance' from the garage menu. From the 'Engine' section click
to 'Swap Engine' and then purchase and equip any engine that you like (I chose the last one as it is great for racing and completing the story).
Now exit the garage and win any race for your trophy.
I created this video to help:
Hope this helps.