Google said this is currently an experiment but will share more details on how publishers can participate later.
Please visit Search Engine Land for the full article.
Source: Search Engine Land
Link: Google confirms showing homework practice problems in search results