Get (something) straight

To understand something clearly.

I could not get what my friend was trying to tell me straight.