Sort lentils and rinse with cold water. Cook lentils in 8 cups water over medium fire for 20 minutes. Add rice, salt and pepper and cook another 15 minutes. Fry onions in olive oil. Remove onions, pour oil over rice-lentil mixture, and mix. Set until cool. Garnish with onions.