From the diagram,
h2 = 42 + 32 (pythagoras')
h2 = 16 + 9 = 25
h = √25 = 5
Hence, sin x - cos x
= 45−35
= 15