For the first one, I find it easiest to work backwards. This means you do the opposite of what it says So start with 24 and add 3. This gives you 27. Then, divide by 3. This means the answer is 9.
The second one. You do (y2-y1)/(x2-X1). Plug in the numbers and you end up with -12/-3 which is equal to four.