Cook peas and drain. Combine peas, onions, soup, celery, water chestnuts, and pimentos. Put in a 2-quart casserole. Melt margarine and combine with bread crumbs (toasted). Sprinkle on top. Bake for 30-35 minutes at 350 degrees.