  We show that the family of 21-dimensional intermediate jacobians of cubic
fivefolds containing a given cubic fourfold X is generically an algebraic
integrable system. In the proof we apply an integrability criterion, introduced
and used by Donagi and Markman to find a similar integrable system over the
family of cubic threefolds in X. To enter in the conditions of this criterion,
we write down explicitly the known by Beauville and Donagi symplectic structure
on the family F(X) of lines on the general cubic fourfold X, and prove that the
family of planes on a cubic fivefold containing X is embedded as a Lagrangian
surface in F(X). By a symplectic reduction we deduce that our integrable system
induces on the nodal boundary another integrable system, interpreted
generically as the family of 20-dimensional intermediate jacobians of Fano
threefolds of genus four contained in X. Along the way we prove an Abel-Jacobi
type isomorphism for the Fano surface of conics in the general Fano threefold
of genus 4, and compute the numerical invariants of this surface.
