John is 6 years older than Jim. The product of their ages is 135.
Let John's age = x years.
a Find an expression for Jim's age in terms of x.
b Find their respective ages algebraically.