Firstly it has to be a right angled trinagle. Even if it is an irregukar shape, draw a line in to make it a right angled triangle. When you have your right angled triangle remember it is ALWAYS + if it is the hypotenuse (longest side) and - if it is not the hypotenuse.