<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
.line ~ .bg-green {
background-color: #4fe878;
}
</style>
</head>
<body>
<ul>
<li class="bg-green">First line</li>
<li class="line">Second line</li>
<li>Third line</li>
<li class="bg-green">Fourth line</li>
<li class="bg-green">Fifth line</li>
</ul>
</body>
</html>