Context: X wants to know about Y's music preferences.

X: Have you ever played the guitar?
Y: I used to play the piano.