Its basically just subtracting from one another
for example, 6-6 is 6
or -4-3= 7
This follows from the half-angle identity for cosine.
I believe that your answer is wrong and that it should be 19.2. If you set up a proportion of 5/12=8/x, and solve for x, that’s what you get