Algebra Examples

Write as a Function of a ax-6=7x-26{5}
I am unable to solve this problem.