How to construct a TRIANGLE with perimeter and ratio of sides given