Answer:
-- Define a list of numbers
myList = [23,24,28, 30,35,36,40,42,44,54]
-- Use a list comprehension to filter the list and return only the numbers
-- that are greater than 10 and less than or equal to 30
filteredList = [x | x <- myList, x > 10, x <= 30]
-- Print the filtered list
print(filteredList)