A cookie factory uses 2⁄5 of a bag of flour in each batch of cookies. Yesterday, the factory used 4⁄5 of a bag of flour. How many batches did the factory make yesterday?