/**
 * Archaeologists often rely on various digging tools to excavate sites. This exercise requires you to compare the advantages of two different tools and determine which one is more beneficial.
 *
 * @param tool1 The first digging tool you want to compare.
 * @param tool2 The second digging tool you want to compare.
 * @return A string indicating the better tool.
 */
fun compareDiggingTools(tool1: String, tool2: String): String {

    // Complete the code below to compare the advantages of the given digging tools.

    val tool1Speed = 7
    val tool1Precision = 9
    val tool1Durability = 8

    val tool2Speed = 9
    val tool2Precision = 8
    val tool2Durability = 7

    // Determine the advantages of each tool and calculate a total advantage score.
    val tool1Advantage = tool1Speed * 1.5 + tool1Precision * 1.2 + tool1Durability
    val tool2Advantage = tool2Speed * 1.5 + tool2Precision * 1.2 + tool2Durability

    // Compare and return the better tool based on their total advantage score.
    return if (tool1Advantage > tool2Advantage) {
        tool1
    } else {
        tool2
    }
}
/**
 * Archaeologists often rely on various digging tools to excavate sites. This exercise requires you to compare the advantages of two different tools and determine which one is more beneficial.
 *
 * @param tool1 The first digging tool you want to compare.
 * @param tool2 The second digging tool you want to compare.
 * @return A string indicating the better tool.
 */
fun compareDiggingTools(tool1: String, tool2: String): String {
/**
 * Archaeologists often rely on various digging tools to excavate sites. This exercise requires you to compare the advantages of two different tools and determine which one is more beneficial.
 *
 * @param tool1 The first digging tool you want to compare.
 * @param tool2 The second digging tool you want to compare.
 * @return A string indicating the better tool.
 */
fun compareDiggingTools(tool1: String, tool2: String): String {

    // Complete the code below to compare the advantages of the given digging tools.

    val tool1Speed = 7
    val tool1Precision = 9
    val tool1Durability = 8

    val tool2Speed = 9
    val tool2Precision = 8
    val tool2Durability = 7

    // Determine the advantages of each tool and calculate a total advantage score.
    val tool1Advantage = tool1Speed * 1.5 + tool1Precision * 1.2 + tool1Durability
    val tool2Advantage = tool2Speed * 1.5 + tool2Precision * 1.2 + tool2Durability

    // Compare and return the better tool based on their total advantage score.
    return if (tool1Advantage > tool2Advantage) {
        tool1
    } else {
        tool2
    }
}