The sides of a right-angled triangle are p, p+1 and 5. Find the area of triangle, if the longest side measures 5 cm.