Javier, an artist, plans to paint and sell some miniature paintings. He just bought some brushes for $1, and paint and canvas for each painting costs $21; he will sell each painting for $22. Once Javier sells a certain number of his paintings, he will be breaking even. How many paintings will that be? How much will Javier have earned?