/**
 * The function takes a string containing two numbers separated by a comma and converts it into a Pair.
 * Then, it performs division of the Pair elements by the given divisor and returns the resulting Pair.
 *
 * @param string A string containing two numbers separated by a comma.
 * @param divisor An integer divisor value.
 * @return A Pair with the division result of the two numbers from the string.
 *
 * Example:
 * createPairAndDivide("25,10", 5)
 * Output: Pair(5.0, 2.0)
 */
fun createPairAndDivide(string: String, divisor: Int): Pair<Double, Double> {

    // Split the string by comma and convert the resulting substrings into integers
    val (a, b) = string.split(',').map { it.toInt() }

    // Perform division and return a Pair with the result
    return Pair(a.toDouble() / divisor, b.toDouble() / divisor)
}
/**
 * The function takes a string containing two numbers separated by a comma and converts it into a Pair.
 * Then, it performs division of the Pair elements by the given divisor and returns the resulting Pair.
 *
 * @param string A string containing two numbers separated by a comma.
 * @param divisor An integer divisor value.
 * @return A Pair with the division result of the two numbers from the string.
 *
 * Example:
 * createPairAndDivide("25,10", 5)
 * Output: Pair(5.0, 2.0)
 */
fun createPairAndDivide(string: String, divisor: Int): Pair<Double, Double> {
/**
 * The function takes a string containing two numbers separated by a comma and converts it into a Pair.
 * Then, it performs division of the Pair elements by the given divisor and returns the resulting Pair.
 *
 * @param string A string containing two numbers separated by a comma.
 * @param divisor An integer divisor value.
 * @return A Pair with the division result of the two numbers from the string.
 *
 * Example:
 * createPairAndDivide("25,10", 5)
 * Output: Pair(5.0, 2.0)
 */
fun createPairAndDivide(string: String, divisor: Int): Pair<Double, Double> {

    // Split the string by comma and convert the resulting substrings into integers
    val (a, b) = string.split(',').map { it.toInt() }

    // Perform division and return a Pair with the result
    return Pair(a.toDouble() / divisor, b.toDouble() / divisor)
}