The key to exercise solutions in chapter Unit 59 - Prefer and would rather for the textbook English Grammar in Use with authors Raymond Murphy from Cambridge University Press
Which do you prefer? Write sentences using ‘I prefer (something) to (something else)’. Put the verb into the correct form where necessary.
Now rewrite sentences 3 and 4 using the structure ‘I prefer to (do something).