/**
 * Given a dancer and a list of numbers, multiply each number by the dancer's value and append the result to a new list.
 *
 * @param dancer The value of the dancer.
 * @param numbers A list of numbers.
 * @return A new list with the results of multiplying each number by the dancer's value and appending the product.
 */
fun multiplyAndAppend(dancer: Int, numbers: List<Int>): List<Int> {

    val newList = mutableListOf<Int>()
    for (num in numbers) {
        // Multiply the number by the dancer's value
        val product = num * dancer
        
        // Append the product to the new list
        newList.add(product)
    }
    return newList
}
/**
 * Given a dancer and a list of numbers, multiply each number by the dancer's value and append the result to a new list.
 *
 * @param dancer The value of the dancer.
 * @param numbers A list of numbers.
 * @return A new list with the results of multiplying each number by the dancer's value and appending the product.
 */
fun multiplyAndAppend(dancer: Int, numbers: List<Int>): List<Int> {
/**
 * Given a dancer and a list of numbers, multiply each number by the dancer's value and append the result to a new list.
 *
 * @param dancer The value of the dancer.
 * @param numbers A list of numbers.
 * @return A new list with the results of multiplying each number by the dancer's value and appending the product.
 */
fun multiplyAndAppend(dancer: Int, numbers: List<Int>): List<Int> {

    val newList = mutableListOf<Int>()
    for (num in numbers) {
        // Multiply the number by the dancer's value
        val product = num * dancer
        
        // Append the product to the new list
        newList.add(product)
    }
    return newList
}