Answer: y = 6-1.5x
========================================================
Work Shown:
x = number of hours
1.5x = number of pages written after x hours
y = 6-1.5x = number of pages left after x hours
--------------
In other words, if Leo can write at a pace of 1.5 pages per hour, and works for x hours, then he has written 1.5x pages so far. The difference of this with 6 will tell us what is left over. So the expression 6-1.5x is the amount of pages left, which is the value of y.
--------------
An example:
x = 2 so 1.5x = 1.5*2 = 3
At the 2 hour mark, Leo has written 3 pages. He has 6-1.5x = 6-1.5*2 = 6-3 = 3 pages left.