Shown below is the graph of a function , where a is an integer, and b is a whole number.
Find the values of a and b.