import time


def format_time(t):
    """Formats time into string with minutes and seconds

    :param t: The time in seconds
    :type t: float
    :return: Formatted string with minutes and seconds
    :rtype: string
    """
    time_string = time.strftime("%M:%S", time.gmtime(t))
    time_list = time_string.split(":")
    num_min = time_list[0]
    num_sec = time_list[1]
    return f"{num_min} minutes and {num_sec} seconds"