1) The problem gives equations relating variables a, b, c, and d where a+b+c+d=45. 2) Solving the equations for each variable in terms of a yields: a=8, b=12, c=5, d=20. 3) Plugging these values into the original expression a+b+c-d gives the solution of 5.