31=2y-5
Add 5 on both -5+5 which cancels out and 31+5 which is 36 and then divide 36 by 2 which equals to 18.
So y=18 hope this helped (':