/**
 * Given a pair of coordinates and two integers representing the amount of translation in x and y directions respectively, modifies the coordinates.
 *
 * @param coordinates A pair containing x and y coordinates.
 * @param x The amount of translation in the x direction.
 * @param y The amount of translation in the y direction.
 * @return The modified pair of coordinates after applying translation.
 */
fun modifyCoordinates(coordinates: Pair<Int, Int>, x: Int, y: Int): Pair<Int, Int> {

    // Extracting the x and y coordinates from the pair
    var (xCoordinate, yCoordinate) = coordinates

    // Modifying the coordinates using translation values
    xCoordinate += x
    yCoordinate += y

    // Constructing the modified pair of coordinates
    val modifiedCoordinates = Pair(xCoordinate, yCoordinate)

    return modifiedCoordinates
}

// Example Usage
/**
 * Given a pair of coordinates and two integers representing the amount of translation in x and y directions respectively, modifies the coordinates.
 *
 * @param coordinates A pair containing x and y coordinates.
 * @param x The amount of translation in the x direction.
 * @param y The amount of translation in the y direction.
 * @return The modified pair of coordinates after applying translation.
 */
fun modifyCoordinates(coordinates: Pair<Int, Int>, x: Int, y: Int): Pair<Int, Int> {
/**
 * Given a pair of coordinates and two integers representing the amount of translation in x and y directions respectively, modifies the coordinates.
 *
 * @param coordinates A pair containing x and y coordinates.
 * @param x The amount of translation in the x direction.
 * @param y The amount of translation in the y direction.
 * @return The modified pair of coordinates after applying translation.
 */
fun modifyCoordinates(coordinates: Pair<Int, Int>, x: Int, y: Int): Pair<Int, Int> {

    // Extracting the x and y coordinates from the pair
    var (xCoordinate, yCoordinate) = coordinates

    // Modifying the coordinates using translation values
    xCoordinate += x
    yCoordinate += y

    // Constructing the modified pair of coordinates
    val modifiedCoordinates = Pair(xCoordinate, yCoordinate)

    return modifiedCoordinates
}

// Example Usage