Problems
255 - Carpeting
SUBMIT PROBLEM

Carpeting

Time Limit: 1 sec

 

The Problem

You are given a room for carpeting. The width, W of the room is three times of its length, L. You demand M taka for carpeting per meter2 of the room. The total cost for carpeting the room is N taka.

Your task is to find the length and width of the room.

 

 

 

The Input

The input file contains two floating numbers, cost of carpeting per meter, M( 0 < M <= 10000) and the total cost of carpeting, N( 0 < N <= 10000).

 

The Output

The Output will print the width and length of the room rounded to 2 decimal points in a separate line.

 

Sample Input

7.50 1102.50

 

Sample Output

The length is 7.00 meter

The width is 21.00 meter

 

 

 

 

Problem Setter: Samia Safa Ahmed