If perimeter of a triangle ABC with sides 3 cm, 4 cm and 5 cm is two times the perimeter of a square then find area of the square.