/**
 * A physical therapist wants to track the number of treatment sessions attended by each patient.
 * The patientRecords tuple contains the name of each patient followed by the number of sessions they attended
 * and the number of sessions missed. Write a function that returns the number of treatment sessions each patient
 * has completed.
 *
 * @param patientRecords A tuple containing the patient name, number of sessions attended, and number of sessions missed.
 * @return The total number of treatment sessions completed by each patient.
 *
 * Note:
 * - In this exercise, the patientRecords tuple will always have three elements in the following format:
 *   (patientName: String, sessionsAttended: Int, sessionsMissed: Int)
 *
 * Example:
 * --------
 * countTreatmentSessions(("John Doe", 10, 2)) // 12
 * countTreatmentSessions(("Jane Smith", 5, 1)) // 6
 */
fun countTreatmentSessions(patientRecords: Triple<String, Int, Int>): Int {

    return patientRecords.second + patientRecords.third  // Add the number of sessions attended and missed
}
/**
 * A physical therapist wants to track the number of treatment sessions attended by each patient.
 * The patientRecords tuple contains the name of each patient followed by the number of sessions they attended
 * and the number of sessions missed. Write a function that returns the number of treatment sessions each patient
 * has completed.
 *
 * @param patientRecords A tuple containing the patient name, number of sessions attended, and number of sessions missed.
 * @return The total number of treatment sessions completed by each patient.
 *
 * Note:
 * - In this exercise, the patientRecords tuple will always have three elements in the following format:
 *   (patientName: String, sessionsAttended: Int, sessionsMissed: Int)
 *
 * Example:
 * --------
 * countTreatmentSessions(("John Doe", 10, 2)) // 12
 * countTreatmentSessions(("Jane Smith", 5, 1)) // 6
 */
fun countTreatmentSessions(patientRecords: Triple<String, Int, Int>): Int {
/**
 * A physical therapist wants to track the number of treatment sessions attended by each patient.
 * The patientRecords tuple contains the name of each patient followed by the number of sessions they attended
 * and the number of sessions missed. Write a function that returns the number of treatment sessions each patient
 * has completed.
 *
 * @param patientRecords A tuple containing the patient name, number of sessions attended, and number of sessions missed.
 * @return The total number of treatment sessions completed by each patient.
 *
 * Note:
 * - In this exercise, the patientRecords tuple will always have three elements in the following format:
 *   (patientName: String, sessionsAttended: Int, sessionsMissed: Int)
 *
 * Example:
 * --------
 * countTreatmentSessions(("John Doe", 10, 2)) // 12
 * countTreatmentSessions(("Jane Smith", 5, 1)) // 6
 */
fun countTreatmentSessions(patientRecords: Triple<String, Int, Int>): Int {

    return patientRecords.second + patientRecords.third  // Add the number of sessions attended and missed
}