Let F be a file price, N a notebook price and B the bag price. F = N + 4 and B = N + 38.
10/16 of the money = 10N + 10F = 20N + 40. 5/16 of the money = B = N + 38. 10/16 of the money = 2B = 2N + 76.
20N + 40 = 2N + 76. 18N = 36. N = $2.
Bag price = 2 + 38 = $40. Money left = 1 − 10/16 − 5/16 = 1/16. 1/16 of the money = 40 ÷ 5 = $8.