Dont go by what comes after or before certain keywords, think it logically
Think of P $\rightarrow$ Q as IF P(is true) THEN Q(must be too)
Taking P : “Driving over 65” and Q : “Getting a speeding ticket”
Statement 1 can be interpreted as IF you drive over 65 THEN you get a speeding ticket. That’s why it is P $\rightarrow$ Q
The preposition before the arrow gives you What has happened, the one AFTER will tell you the action happening as its consequence.
Similarly, The second statement translates to IF you get a speeding ticket THEN you must’ve been driving above 65.
So that is Q $\rightarrow$ P