/**
 * Given the length of time a firefighter has been on duty (in years),
 * their age (in years), and the current temperature (in degrees Celsius),
 * calculate the maximum weight they can carry (in kilograms) using the
 * following formula:
 *
 * Weight_limit = 30 + (0.5 * length + 0.3 * age + 2 * temperature)
 *
 * Convert the calculated weight into a string representation with two decimal places.
 * Return the formatted weight as a string.
 */
fun name(length: Double, age: Double, temperature: Double): String {

    val weightLimit = 30 + (0.5 * length + 0.3 * age + 2 * temperature)
    val formattedWeight = String.format("%.2f", weightLimit)
    return formattedWeight
}
/**
 * Given the length of time a firefighter has been on duty (in years),
 * their age (in years), and the current temperature (in degrees Celsius),
 * calculate the maximum weight they can carry (in kilograms) using the
 * following formula:
 *
 * Weight_limit = 30 + (0.5 * length + 0.3 * age + 2 * temperature)
 *
 * Convert the calculated weight into a string representation with two decimal places.
 * Return the formatted weight as a string.
 */
fun name(length: Double, age: Double, temperature: Double): String {
/**
 * Given the length of time a firefighter has been on duty (in years),
 * their age (in years), and the current temperature (in degrees Celsius),
 * calculate the maximum weight they can carry (in kilograms) using the
 * following formula:
 *
 * Weight_limit = 30 + (0.5 * length + 0.3 * age + 2 * temperature)
 *
 * Convert the calculated weight into a string representation with two decimal places.
 * Return the formatted weight as a string.
 */
fun name(length: Double, age: Double, temperature: Double): String {

    val weightLimit = 30 + (0.5 * length + 0.3 * age + 2 * temperature)
    val formattedWeight = String.format("%.2f", weightLimit)
    return formattedWeight
}