Which one is the correct sentence?

Answer: 
He prefers writing to reading
Which one is the correct sentence?