y=5, x=7 because if 3x5=15 then 15-7=8 dont report me if i do get this wrong
Take into account, that in general, a cosine function of amplitude A, period T and vertical translation b, can be written as follow:

In the given case, you have:
A = 4
T = 3π/4
b = -3
By replacing you obtain:

Hence, the answer is:
f(x) = 4cos(8/3 x) - 3
This is a classic example of a 45-45-90 triangle: it's a right triangle (one angle of 90) & two other sides of the same length, which means two angles of the same length (and 45 is the only number that will work). With a 45-45-90 triangle, the lengths of the legs are easy to determine:
45-45-90
1-1-sqrt2
Where the hypotenuse corresponds to sqrt2.
Now, your hypotenuse is 10.
To figure out what each leg is, divide 10/sqrt2 (because sqrt2/sqrt2 = 1, which is a leg length in the explanation above).
Problem: you can't divide by radicals. So, we'll have to rationalize the denominator:
(10•sqrt2)/(sqrt2•sqrt2)
This can be rewritten:
10sqrt2/sqrt(2•2)
=10sqrt2/sqrt4
=10sqrt2/2
=5sqrt2
Hope this helps!!