30/6=5, 18/6=3. 3,4,5, is a Pythagorean triple, therefore x=4x6=24.
You can ask a new question or answer this question.