I know this isn't very hard, but I seem to keep on messing up somewhere
Using an extra variable A for simplicity,
A= 8cosX *(sqrt(10) / (sqrt(10)+2)
Solve for cosX (or (cosX)^2, whichever is found easier) in:
5A/(40-A^2)=cosX
Thanks very much in advance!