import math


def tile_ref(position, tile_size):
    """Returns the column and row of the tile at the given x and y coordinates.
    position is a pair of x, y coordinates as a 2-item sequence 
    tile_size is the size of each tile as an int"""
    
    # The coordinates are divided by the tile size and rounded down to the nearest integer
    return int(math.floor(position[0] / tile_size)), int(math.floor(position[1] / tile_size))