/**
 * A social worker needs to calculate the age of a person given their year of birth and the current year.
 * Complete the function 'calculateAge' to return the age of the person in years.
 *
 * @param yearOfBirth An integer representing the year of birth of the person.
 * @param currentYear An integer representing the current year.
 * @return The age of the person calculated as the difference between the current year and the year of birth.
 *
 * Instructions:
 * - The function should take two arguments: yearOfBirth and currentYear.
 * - Use the subtraction operator to calculate the age of the person.
 * - Return the calculated age.
 * - Assume that the yearOfBirth is always less than or equal to the currentYear.
 *
 * Example:
 * calculateAge(1990, 2020) => 30
 * calculateAge(1985, 2022) => 37
 */
fun calculateAge(yearOfBirth: Int, currentYear: Int): Int {

    // Calculate the age of the person
    val age = currentYear - yearOfBirth
    return age
}
/**
 * A social worker needs to calculate the age of a person given their year of birth and the current year.
 * Complete the function 'calculateAge' to return the age of the person in years.
 *
 * @param yearOfBirth An integer representing the year of birth of the person.
 * @param currentYear An integer representing the current year.
 * @return The age of the person calculated as the difference between the current year and the year of birth.
 *
 * Instructions:
 * - The function should take two arguments: yearOfBirth and currentYear.
 * - Use the subtraction operator to calculate the age of the person.
 * - Return the calculated age.
 * - Assume that the yearOfBirth is always less than or equal to the currentYear.
 *
 * Example:
 * calculateAge(1990, 2020) => 30
 * calculateAge(1985, 2022) => 37
 */
fun calculateAge(yearOfBirth: Int, currentYear: Int): Int {
/**
 * A social worker needs to calculate the age of a person given their year of birth and the current year.
 * Complete the function 'calculateAge' to return the age of the person in years.
 *
 * @param yearOfBirth An integer representing the year of birth of the person.
 * @param currentYear An integer representing the current year.
 * @return The age of the person calculated as the difference between the current year and the year of birth.
 *
 * Instructions:
 * - The function should take two arguments: yearOfBirth and currentYear.
 * - Use the subtraction operator to calculate the age of the person.
 * - Return the calculated age.
 * - Assume that the yearOfBirth is always less than or equal to the currentYear.
 *
 * Example:
 * calculateAge(1990, 2020) => 30
 * calculateAge(1985, 2022) => 37
 */
fun calculateAge(yearOfBirth: Int, currentYear: Int): Int {

    // Calculate the age of the person
    val age = currentYear - yearOfBirth
    return age
}