Write SQL query to solve given problem: What is the store and inventory ID of the film with the longest duration?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT T2.store_id, T2.inventory_id FROM film AS T1 INNER JOIN inventory AS T2 ON T1.film_id = T2.film_id ORDER BY T1.length DESC LIMIT 1